﻿<Window x:Class="WPFScaffolderTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ctrls="clr-namespace:OUTSys.Imagine.Controls;assembly=WpfScaffolder"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel>
        <ListBox ItemsSource="{Binding Entities}" SelectedValue="{Binding Entity}" DockPanel.Dock="Top" Height="50" >
           
        </ListBox>
        <ctrls:Scaffolder PanelType="StackPanel" Orientation="Vertical" CollapseOnEmpty="True"
                          DataContext="{Binding Entity}" VerticalAlignment="Center" Margin="0,5"
                          DockPanel.Dock="Bottom">
            <ctrls:Scaffolder.ComboBoxStyle>
                <Style TargetType="ComboBox"  BasedOn="{StaticResource {x:Type ComboBox}}">
                    <Setter Property="Margin" Value="5,0,10,0" />
                </Style>
            </ctrls:Scaffolder.ComboBoxStyle>
            <ctrls:Scaffolder.TextBoxStyle>
                <Style TargetType="TextBox"  BasedOn="{StaticResource {x:Type TextBox}}" >
                    <Setter Property="Margin" Value="5,0,10,0" />
                </Style>
            </ctrls:Scaffolder.TextBoxStyle>
            <ctrls:Scaffolder.DatePickerStyle>
                <Style TargetType="DatePicker"  BasedOn="{StaticResource {x:Type DatePicker}}">
                    <Setter Property="Margin" Value="5,0,10,0" />
                </Style>
            </ctrls:Scaffolder.DatePickerStyle>
            <ctrls:Scaffolder.CheckBoxStyle>
                <Style TargetType="CheckBox"  BasedOn="{StaticResource {x:Type CheckBox}}">
                    <Setter Property="Margin" Value="5,0,10,0" />
                </Style>
            </ctrls:Scaffolder.CheckBoxStyle>
            <ctrls:Scaffolder.TextBlockStyle>
                <Style TargetType="TextBlock"  BasedOn="{StaticResource {x:Type TextBlock}}">
                    <Setter Property="VerticalAlignment" Value="Center" />
                </Style>
            </ctrls:Scaffolder.TextBlockStyle>
        </ctrls:Scaffolder>
    </DockPanel>
</Window>
